package com.da.javatest.leetCode;

/**
 * @author chenlida
 * @date 2019/1/10 09:57
 * @description
 */
public class Code739 {
    public int[] dailyTemperatures(int[] T) {
        int[] result = new int[T.length];
        for (int i = 0; i < T.length; i++) {
            int day = 0;
            for (int j = i + 1; j < T.length; j++) {
                day++;
                if (T[i] < T[j]) {
                    result[i] = day;
                    break;
                }
            }
        }
        return result;
    }
}
